package com.caolei1992.impl.business.account.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.caolei1992.api.business.account.entity.Account;
import com.caolei1992.api.business.account.service.IAccountService;
import com.caolei1992.impl.business.account.dao.AccountDao;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


/**
 * <p>
 * 系統用戶表 服务实现类
 * </p>
 *
 * @author caolei
 * @since 2019-12-04
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class AccountServiceImpl extends ServiceImpl<AccountDao, Account> implements IAccountService {

    @Override
    @Transactional(propagation = Propagation.SUPPORTS, rollbackFor = Exception.class)
    public Account findById(String id) {
        return getById(id);
    }


}
